﻿<html>
<head>
    <title>ButtonEdit - jQuery MiniUI 3.0 Documentation</title>    

    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <meta name="keywords" content="jquery,datagrid,grid,表格控件,ajax,web开发,java开发,.net开发,tree,table,treegrid" />
    <meta name="description" content="jQuery MiniUI - 专业WebUI控件库。jQuery MiniUI是使用Javascript实现的前端Ajax组件库，支持所有浏览器，可以跨平台开发，如Java、.Net、PHP等。" />

    <link href="css/common.css" rel="stylesheet" type="text/css" />
    <script src="core.js" type="text/javascript"></script>
</head>
<body>
    <h3>mini.ButtonEdit</h3>
    
    <p>按钮输入框。</p>

    <h4>Extend</h4>
    <p> <a class="extendlink" href="control.html">mini.Control</a></p>    

    <h4>Usage</h4>
<pre class="code"><span style="color:blue">&lt;</span><span style="color:maroon">input </span><span style="color:red">id</span><span style="color:blue">="btnEdit1" </span><span style="color:red">class</span><span style="color:blue">="mini-buttonedit" </span><span style="color:red">onbuttonclick</span><span style="color:blue">="onButtonEdit"/&gt;
</span></pre>

    <h4>Screenshots</h4>
    <img src="images/buttonedit.gif" />

    <h4>Examples</h4>
    <a class="demo" href="../../demo/buttonedit/buttonedit.html" target="_blank">ButtonEdit</a>


    <h4>Properties</h4>
    <table>
        <tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th><a href="setsupport.html" target="_blank" style="padding-left:5px;padding-right:5px;"> Set? </a></th><th><a href="getsupport.html" target="_blank" style="padding-left:5px;padding-right:5px;"> Get? </a></th><th><a href="tagsupport.html" target="_blank" style="padding-left:5px;padding-right:5px;"> Tag? </a></th></tr>        
        <tr>
            <td>emptyText</td>
            <td>String</td>
            <td>文本为空时的提示内容</td>
            <td></td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        <tr>
            <td>text</td>
            <td>String</td>
            <td>文本</td>  
            <td></td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        <tr>
            <td>value</td>
            <td>Object</td>
            <td>值</td>
            <td>false</td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        <tr>
            <td>inputAsValue</td>
            <td>Boolean</td>
            <td>输入文本作为值</td>
            <td>false</td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        <!--<tr>
            <td>keyNavEnabled</td>
            <td>Boolean</td>
            <td>设置false后，控件不响应键盘事件</td>
            <td>true</td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>-->
        
        <tr>
            <td>textName</td>
            <td>String</td>
            <td>文本字段名称</td>
            <td></td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        <tr>
            <td>selectOnFocus</td>
            <td>Boolean</td>
            <td>获取焦点时选中文本</td>
            <td>false</td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr> 
        <tr>
            <td>maxLength</td>
            <td>Number</td>
            <td>最大文本字符数</td>
            <td>1000</td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        <tr>
            <td>minLength</td>
            <td>Number</td>
            <td>最小文本字符数</td>
            <td>0</td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        <tr>
            <td>allowInput</td>
            <td>Boolean</td>
            <td>允许文本输入</td>
            <td>true</td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        <tr>
            <td>required</td>
            <td>Boolean</td>
            <td>不允许为空</td>
            <td>false</td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        <tr>
            <td>errorMode</td>
            <td>String：icon、border、none</td>
            <td>错误提示方式</td>
            <td>icon</td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        <tr>
            <td>validateOnChanged</td>
            <td>Boolean</td>
            <td>值改变时验证</td>
            <td>true</td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        <tr>
            <td>forceValidate</td>
            <td>Boolean</td>
            <td>是否隐藏、禁用时都能强制验证</td>
            <td>false</td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        <tr>
            <td>showButton</td>
            <td>Boolean</td>
            <td>是否显示弹出按钮</td>
            <td>true</td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        <tr>
            <td>buttonToolTip</td>
            <td>String</td>
            <td>按钮提示信息</td>
            <td></td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        
        <tr>
            <td>showClose</td>
            <td>Boolean</td>
            <td>是否显示关闭按钮</td>
            <td>false</td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        <tr>
            <td>indentSpace</td>
            <td>Boolean</td>
            <td>是否显示占位空白</td>
            <td>false</td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>

        <tr>
            <td>labelField</td>
            <td>Boolean</td>
            <td>是否显示label</td>
            <td>false</td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
         <tr>
            <td>label</td>
            <td>String</td>
            <td>label文本</td>
            <td></td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
          <tr>
            <td>labelStyle</td>
            <td>String</td>
            <td>label样式</td>
            <td></td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>

    </table>

    <h4>Methods</h4>
    <table>
        <tr><th>Name</th><th>Parameter</th><th>Description</th><th>Return</th></tr>
        <tr>
            <td>doValueChanged（）</td>
            <td></td>
            <td>主动激发valuechanged事件。一般在设置值之后调用。</td>
            <td></td>
        </tr>
        <tr>
            <td>setValue（value）</td>
            <td></td>
            <td>设置值</td>
            <td></td>
        </tr>
        <tr>
            <td>getValue（）</td>
            <td></td>
            <td>获取值</td>
            <td></td>
        </tr>
        <tr>
            <td>getFormValue（）</td>
            <td></td>
            <td>获取表单值</td>
            <td>String</td>
        </tr>
        <tr>
            <td>validate（）</td>
            <td></td>
            <td>验证控件值</td>
            <td>Boolean</td>
        </tr>
        <tr>
            <td>isValid（）</td>
            <td></td>
            <td>是否通过验证</td>
            <td>Boolean</td>
        </tr>
        <tr>
            <td>setIsValid（Boolean）</td>
            <td></td>
            <td>设置验证结果</td>
            <td></td>
        </tr>
    </table>

    <h4>Events</h4>
    <table>
        <tr><th>Name</th><th>EventObject</th><th>Description</th></tr>       
        <tr>
            <td>valuechanged</td>
            <td></td>
            <td>值改变时发生</td>            
        </tr>
        <tr>
            <td>buttonclick</td>
            <td></td>
            <td>按钮点击时发生</td>            
        </tr>   
        <tr>
            <td>validation</td>
            <td></td>
            <td>验证时发生</td>            
        </tr>   
        <tr>
            <td>enter</td>
            <td></td>
            <td>回车时发生</td>            
        </tr>  
        <tr>
            <td>keydown</td>
            <td></td>
            <td>键盘按下时发生</td>            
        </tr>  
        <tr>
            <td>keyup</td>
            <td></td>
            <td>键盘按起时发生</td>            
        </tr> 
        <tr>
            <td>focus</td>
            <td></td>
            <td>获取焦点时发生</td>            
        </tr>  
        <tr>
            <td>blur</td>
            <td></td>
            <td>失去焦点时发生</td>            
        </tr> 
        <tr>
            <td>closeclick</td>
            <td></td>
            <td>点击关闭按钮时激发</td>            
        </tr> 
    </table>

    
</body>
</html>
